﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddWorkPackage.aspx.cs" Inherits="Bitirme.Views.AddWorkPackage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<p><asp:Label ID="ProjectNameLabel" runat="server" AssociatedControlID="NameTextBox">Proje Adı:</asp:Label>
<asp:Label ID="ProjectName" runat="server" AssociatedControlID="NameTextBox"></asp:Label></p>
<p><asp:Label ID="ProjeSubjectLabel" runat="server" AssociatedControlID="NameTextBox">Proje Konusu:</asp:Label>
<asp:Label ID="ProjectSubject" runat="server" AssociatedControlID="NameTextBox"></asp:Label></p>
<p><asp:Label ID="ProjeDetailLabel" runat="server" AssociatedControlID="NameTextBox">Proje Detayları:</asp:Label>
<asp:Label ID="ProjectDetail" runat="server" AssociatedControlID="NameTextBox"></asp:Label></p>
<p><asp:Label ID="ProjectCostLabel" runat="server" AssociatedControlID="NameTextBox">Proje Tutari:</asp:Label>
<asp:Label ID="ProjectCost" runat="server" AssociatedControlID="NameTextBox"></asp:Label></p>
<p><asp:Label ID="ProjectDurationLabel" runat="server" AssociatedControlID="NameTextBox">Proje Süresi:</asp:Label>
<asp:Label ID="ProjectDuration" runat="server" AssociatedControlID="NameTextBox"></asp:Label></p>

<fieldset class="login">
    <legend>İş paketi Ekle</legend>
    <span class="failureNotification">
        <asp:Literal ID="FailureText" runat="server"></asp:Literal>
    </span>
    <asp:ValidationSummary ID="AddWorkPackageValidationSummary" runat="server" CssClass="failureNotification" ValidationGroup="AddWorkPackageValidationGroup" />
    <p>
        <asp:Label ID="NameLabel" runat="server" AssociatedControlID="NameTextBox">Adı:</asp:Label>
        <asp:TextBox ID="NameTextBox" runat="server" CssClass="textEntry"></asp:TextBox>
        <asp:RequiredFieldValidator ID="NameRequired" runat="server" ControlToValidate="NameTextBox" 
                             CssClass="failureNotification" ErrorMessage="İş Paketi Adı Boş Bırakılamaz." ToolTip="İş Paketi için bir ad giriniz." 
                             ValidationGroup="AddWorkPackageValidationGroup">*</asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="SubjectLabel" runat="server" AssociatedControlID="SubjectTextBox">Konusu:</asp:Label>
        <asp:TextBox ID="SubjectTextBox" runat="server" CssClass="textEntry"></asp:TextBox>
        <asp:RequiredFieldValidator ID="SubjectRequired" runat="server" ControlToValidate="SubjectTextBox" 
                             CssClass="failureNotification" ErrorMessage="İş Paketi Konusu Boş Bırakılamaz." ToolTip="İş Paketi için Konu Belirleyin." 
                             ValidationGroup="AddWorkPackageValidationGroup">*</asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="StateLabel" runat="server" AssociatedControlID="WorkPackageStateList">Durum:</asp:Label>
        <asp:DropDownList ID="WorkPackageStateList" runat="server">
            <asp:ListItem Value="0">Hiçbiri</asp:ListItem>
            <asp:ListItem Selected="True" Value="1">Aktif</asp:ListItem>
            <asp:ListItem Value="2">Pasif</asp:ListItem>
            <asp:ListItem Value="3">Askıda</asp:ListItem>
        </asp:DropDownList>
    </p>
    <p>
        <asp:Label ID="RequirementLabel" runat="server" AssociatedControlID="CapabilityTextBox">Gereklilikler:</asp:Label>
        <asp:TextBox ID="CapabilityTextBox" runat="server" CssClass="textEntry"></asp:TextBox>
        <asp:RequiredFieldValidator ID="ReqsRequired" runat="server" ControlToValidate="CapabilityTextBox" 
                             CssClass="failureNotification" ErrorMessage="Gereklilikler Boş Bırakılamaz." ToolTip="İş Paketi için bir Gereklilik giriniz." 
                             ValidationGroup="AddWorkPackageValidationGroup">*</asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="ManHourLabel" runat="server" AssociatedControlID="CostTextBox">Gerekli İnsan Gücü (AdamSaat):</asp:Label>
        <asp:TextBox ID="ManHourTextBox" runat="server" CssClass="textEntry"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ManHourTextBox" 
                             CssClass="failureNotification" ErrorMessage="İş Paketinin Gerekli İnsan Gücü Boş Bırakılamaz." ToolTip="İş Paketi için bir İnsan Gücü giriniz." 
                             ValidationGroup="AddWorkPackageValidationGroup">*</asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="CostLabel" runat="server" AssociatedControlID="CostTextBox">Maliyet (TL):</asp:Label>
        <asp:TextBox ID="CostTextBox" runat="server" CssClass="textEntry"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="CostTextBox" 
                             CssClass="failureNotification" ErrorMessage="İş Paketinin Maliyeti Boş Bırakılamaz." ToolTip="İş Paketi için bir Maliyet giriniz." 
                             ValidationGroup="AddWorkPackageValidationGroup">*</asp:RequiredFieldValidator>
    </p>

        <fieldset class="login">
        <legend>Projeye Ait İş Paketleri</legend>
            <asp:CheckBoxList ID="CheckBoxList1" runat="server">
            </asp:CheckBoxList>
    </fieldset>
    <asp:Button ID="AddWorkPackageButton" runat="server" onclick="Button1_Click" 
        Text="İş Paketi Ekle" ValidationGroup="AddWorkPackageValidationGroup"/>
    <br/><br/><br/><br/>
    <asp:Label ID="ResultMessage" runat="Server" ForeColor="red" EnableViewState="False"></asp:Label>
  </fieldset>
</asp:Content>

